//
//  MessageCollectionViewCell.m
//  享动
//
//  Created by 沈浩hh on 16/4/5.
//  Copyright © 2016年 HHUI. All rights reserved.
//

#import "MessageCollectionViewCell.h"

@implementation MessageCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _label = [[UILabel alloc]init];
        _label.textAlignment = NSTextAlignmentCenter;
        _label.textColor = [UIColor whiteColor];
        _label.font = [UIFont systemFontOfSize:15];
        if (KHEIGHT == 568) {
            _label.font = [UIFont systemFontOfSize:14];
            _label.frame = CGRectMake(0, 0, KWIDTH / 4.2, 30);
            
        } else if (KHEIGHT == 480) {
            _label.font = [UIFont systemFontOfSize:13];
            _label.frame = CGRectMake(0, 0, KWIDTH / 4.2, 30);
           
        } else if (KHEIGHT == 667) {
            _label.font = [UIFont systemFontOfSize:14];
            _label.frame = CGRectMake(0, 0, KWIDTH / 5, 30);

        } else {
            _label.font = [UIFont systemFontOfSize:14];
            _label.frame = CGRectMake(0, 0, KWIDTH / 5.5, 30);
        }
        [self.contentView addSubview:_label];
    }

    return self;
}
@end
